package com.sooth.micro.entity.view;

import com.dream.system.annotation.Ignore;
import com.dream.system.annotation.View;
import com.dream.template.annotation.validate.NotExist;
import com.sooth.common.dream.model.BaseEntity;
import com.sooth.micro.entity.table.MicroEntity;
import com.sooth.micro.field.view.MicroFieldBo;
import lombok.Data;

import java.util.List;

/**
 * @Description: 实体
 * @Author: moxa
 * @Date: 2023-11-30 19:17:01
 */
@Data
@View(MicroEntity.class)
public class MicroEntityBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 实体名称
     */
    private String entityName;

    /**
     * 实体编码
     */
    @NotExist(msg = "实体编码已经存在")
    private String entityCode;

    /**
     * 数据源id
     */
    private Long datasourceId;

    /**
     * 表名称
     */
    private String tableName;


    @Ignore
    private List<MicroFieldBo> fieldList;
}
